let xhr = new XMLHttpRequest;

xhr.open('get', './data.json')

xhr.setRequestHeader('xxx', 'xxx')

xhr.onreadystatechange = function () {
    xhr.getAllResponseHeaders()
    xhr.getResponseHeader('date')

    xhr.responseText
    xhr.responseXML
    xhr.response
    xhr.responseType
}



xhr.send()